<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head th:replace="~{fragment/header :: header}"></head>
<body>
<!-- div 替换 -->

<!-- container -->
<div class="container blog-content-container">
	<div sec:authorize="isAuthenticated()">
		<p>已有用户登录</p>
		<p>登录用户为：<span sec:authentication="name"></span></p>
		<p>用户角色为：<span sec:authentication="principal.authorities"></span></p>
	</div>
	<div sec:authorize="isAnonymous()">
		<p>未有用户登录</p>
	</div>
</div><!-- /.container -->

<div th:replace="~{fragment/footer :: footer}">...</div>
</body>
</html>